﻿@model IEnumerable<sorochinska_kl.Models.SkillDevPlan>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Assessment.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SkillLevel.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DevWay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ActionsToTake)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DueDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MngComments)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ApprovedByMng)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Assessment.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SkillLevel.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DevWay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ActionsToTake)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DueDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MngComments)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApprovedByMng)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.SkillDevPlanID }) |
            @Html.ActionLink("Details", "Details", new { id=item.SkillDevPlanID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.SkillDevPlanID })
        </td>
    </tr>
}

</table>
